using System;
using System.Collections.Generic;
using System.Linq;
using PCSComUtils.DataAccess;
using PCSComUtils.DataContext;

namespace PCSComProduction.WorkOrder.BO
{
	public class IssueMaterialBO
	{
		public PRO_IssueMaterialMaster GetIssueMaster(int issueMasterId)
		{
		    var dataContext = new PCSDataContext(Utils.Instance.ConnectionString);
		    return dataContext.PRO_IssueMaterialMasters.FirstOrDefault(i => i.IssueMaterialMasterID == issueMasterId);
		}
	}
}
